//
//  DrugViewController1.m
//  pocketmedicine
//
//  Created by student on 16/5/9.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "DrugViewController1.h"
#import "MedicineModel.h"
#import "MedicineCell.h"
#import "AnalysisHelper.h"
@interface DrugViewController1 ()<UITableViewDelegate,UITableViewDataSource>

@property (weak, nonatomic) IBOutlet UITableView *tableViewList;


@end

@implementation DrugViewController1


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.tableViewList.delegate = self;
    self.tableViewList.dataSource = self;
    [self.tableViewList reloadData];
    
    
    
}


- (IBAction)canBtnPressed:(id)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}


-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 1;
    
}


-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    MedicineCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];
    cell.medicine = self.medicine;
    
    
    return cell;
    
}


@end
